﻿namespace FFF.Test.Application.Repositories.FW
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Abp.Domain.Repositories;
    using Abp.EntityFrameworkCore;
    using Abp.ObjectMapping;
    using Abp.UI;
    using Ydm.Helper;
    using Ydm.Extensions;
    using Microsoft.EntityFrameworkCore;
    using AutoMapper.QueryableExtensions;
    using FFF.Test.DataAccess.Framework;
    using FFF.Test.Application.Repositories.FW;
    using FFF.Test.Entity.FW;
    using FFF.Test.Entity.FW.Dto;
    using FFF.Test.Entity.FW.View;

    /// <summary>
    /// 标准角色动作中间表仓储
    /// </summary>
    public class FWStandardRole2ActionRepository :
        YdmAbpRepositoryBase<FWStandardRole2ActionEntity, Guid, FWStandardRole2ActionCreateInputDto, FWStandardRole2ActionUpdateInputDto, FWStandardRole2ActionDto, ViewFWStandardRole2Action, ViewFWStandardRole2Action>,
        IFWStandardRole2ActionRepository
    {
        private readonly IObjectMapper _objectMapper;

        /// <summary>
        /// Initializes a new instance of the <see cref="FWStandardRole2ActionRepository"/> class.
        /// 仓储构造方法
        /// </summary>
        /// <param name="dbContextProvider">对应数据库的对象</param>
        /// <param name="objectMapper">自动映射对象</param>
        public FWStandardRole2ActionRepository(
            IDbContextProvider<MyDbContext> dbContextProvider,
            IObjectMapper objectMapper
            )
            : base(dbContextProvider, objectMapper)
        {
            this._objectMapper = objectMapper;
        }
    }
}
